import { Link, Outlet } from 'umi';
import styles from './index.less';
import { Counter } from '@/components/Counter';

export default function Layout() {
  return (
    <div className={styles.navs}>
      <span>这里是子模2</span>
      <Counter />
      <ul>
        <li>
          <Link to="/">Home</Link>
        </li>
        <li>
          <Link to="/page1">page1</Link>
        </li>
        <li>
          <Link to="/page2">page2</Link>
        </li>
      </ul>
      <div className={styles['page-container']}>
        <Outlet />
      </div>
    </div>
  );
}
